#!/usr/bin/python
import socket
import time
import struct
import os
if __name__ == '__main__':
	sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
	sock.connect(('localhost', 9999))  
	i = 0
	ll = 5
	while True:
		buf = struct.pack("ii",i,ll)
		sock.send(buf)  
		i = i + 1
		time.sleep(1) 
	sock.close()
